package com.dp.vo;

import java.io.Serializable;

import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;

@Entity
@Table(name = "t_employeeright")
//@NamedQueries({@NamedQuery(name = "TEmployeeright.findAll", query = "SELECT n FROM TEmployeeright n"), @NamedQuery(name = "TEmployeeright.findById", query = "SELECT n FROM TEmployeeright n WHERE n.employee_id = :employee_id")})
public class TEmployeeright implements Serializable {
	private static final long serialVersionUID = 1L;
	@Id
    @Basic(optional = false)
    @Column(name = "employee_id")
    private String employee_id;
    @Column(name = "spcode")                   
	private String spcode;
	
    
	public TEmployeeright(){
		
	}
	@Override
    public int hashCode() {
        int hash = 0;
        hash += (employee_id != null ? employee_id.hashCode() : 0);
        hash += (spcode != null ? spcode.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        if (!(object instanceof TEmployeeright)) {
            return false;
        }
        TEmployeeright other = (TEmployeeright) object;
        if ((this.employee_id == null && other.employee_id != null) || (this.employee_id != null && !this.employee_id.equals(other.employee_id))) {
            return false;
        }
        if ((this.spcode == null && other.spcode != null) || (this.spcode != null && !this.spcode.equals(other.spcode))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "com.dp.vo.NewsGroupuserset[employee_id=" + employee_id + "]";
    }
	/**
	 * employee_id
	 *
	 * @return  the employee_id
	 * @since   CodingExample Ver(编码范例查看) 1.0
	 */
	
	public String getEmployee_id() {
		return employee_id;
	}
	/**
	 * @param employee_id the employee_id to set
	 */
	public void setEmployee_id(String employee_id) {
		this.employee_id = employee_id;
	}
	/**
	 * spcode
	 *
	 * @return  the spcode
	 * @since   CodingExample Ver(编码范例查看) 1.0
	 */
	
	public String getSpcode() {
		return spcode;
	}
	/**
	 * @param spcode the spcode to set
	 */
	public void setSpcode(String spcode) {
		this.spcode = spcode;
	}
	
}
